Skip to content

Instantly share code, notes, and snippets.

@vinooniv
vinooniv / orb_flann_matcher.py
Created January 9, 2020 13:46
ORB FLANN based matcher
import argparse
import cv2
import numpy as np
def get_corrected_img(img1, img2):
MIN_MATCHES = 50
orb = cv2.ORB_create(nfeatures=500)
@cTatu
cTatu / pump_detector.py
Created April 22, 2021 16:22
Binance coin pump detector
from collections import deque
from binance.websockets import BinanceSocketManager
from binance.client import Client
from binance.enums import *
from twisted.internet import reactor
coins = ['ACM', "ADX", "AERGO", "AGI", "AION", "AKRO", "ALPHA", "AMB", "APPC", "ARDR", "ARK", "ASR", "AST", "ATM", 'AUCTION', "AUDIO", "AVA", "AXS", "BADGER", "BCD", "BEAM", "BEL", "BLZ", "BQX", "BRD", "BTCST", "BTG", "BTS", "BZRX", "CAKE", "CDT", "CELO", "CKB", "CND", "COS", "CTK", "CTXC", "DATA", "DCR", "DEGO", "DIA", "DLT", "DNT", "DODO", "DREP", "DUSK", "EASY", "EGLD", "ELF", "EVX", "FIO", "FIRO", "FIS", "FLM", "FOR", "FRONT", "FUN", "FXS", "GAS", "GLM", "GO", "GRS", "GTO", "GVT", "HARD", "HNT", "IDEX", "INJ", "JUV", "KSM", "LIT", "LOOM", "LTO", "LUNA", "MDA", "MDT", "MITH", "MTH", "MTL", "NAS", "NAV", "NBS", "NEBL", "NKN", "NMR", "NXS", "OAX", "OCEAN", "OG", "ORN", "OST", "OXT", "PAXG", "PERL", "PHB", "PIVX", "PNT", "POA", "POLY", "POWR", "PPT", "PSG", "QKC", "QLC", "QSP", "RCN", "RDN", "REEF", "RENBTC", "REQ", "RIF", "ROSE",
@jojonas
jojonas / love2d-unpacker.py
Last active May 9, 2024 15:43
Love2d executable unpacker.
import argparse
import os, os.path
import zipfile
import io
def readui32(file):
bytes = file.read(4)
number = bytes[0]
number += bytes[1] << 8
number += bytes[2] << 16
@kidchemical
kidchemical / Movement.cs
Last active May 9, 2024 15:43
(Unity) Third Person Player Movement Script
/*
* Third Person Player Movement Script v1.1 by Ian McCambridge
* :: Free to use always <3 2020 ::
*
* This script pairs with my "Third Person Camera Script" which can be found here:
* https://gist.github.com/kidchemical/b1542ea489c8f2abae3fbd09798dedd4
* FEATURE OUTLINE:
* -Rigidbody required.
* -Plane or Ground must have Tag property set to new tag named "Ground"
* -Freeze X and Z Rotation for player Rigidbody
@i3visio
i3visio / hashcash.py
Created August 9, 2016 21:27
hashcash.py is a clean implementation of a "proof of work" library for Python.
# ----------------------------------------------
# hashcash.py: Hashcash implementation
# ----------------------------------------------
"""
Hashcash is a "proof of work."
Example:
>>> import sha
>>> sha.new('denmark2890CF').hexdigest() '000000cf89643370c24e413ec0886ab92bd7f6e8'
@mh-firouzjah
mh-firouzjah / Translator.md
Last active May 9, 2024 15:42
Translate selected text on Linux with ease! Assign a keyboard shortcut to instantly translate and pronounce selected texts. 🌐📝

Text Translator and Pronunciation Tool

This script provides a convenient way to check spelling, pronunciation, and translation of words or text using a dictionary (such as Google Translate) directly from your Linux desktop. It can be easily integrated with a keyboard shortcut, making it globally accessible for quick translation and pronunciation of selected text.

Background

As a non-native English speaker, I often find myself needing to verify the spelling, pronunciation, or translation of words, phrases, or paragraphs using an online dictionary like Google Translate. To streamline this process, I developed a script that allows me to quickly translate and hear the pronunciation of selected text with a simple keyboard shortcut.

How It Works

@rafaeltuelho
rafaeltuelho / openshift-cheatsheet.md
Last active May 9, 2024 15:40
My Openshift Cheatsheet

My Openshift Cheatsheet

Project Quotes, Limits and Templates

  • Cluster Quota
oc create clusterquota env-qa \
    --project-label-selector environment=qa \
    --hard pods=10,services=5
    
oc create clusterquota user-qa \
@yoksel
yoksel / gist:a8e9d3a9f740bb9e149f
Last active May 9, 2024 15:39
SVG Symbols Shower Bookmarklet
javascript:void(function(){
var doc = document;
var body = doc.querySelector("body");
var head = doc.querySelector("head");
var icons = "";
var resultElem = doc.querySelector("#icons-shower");
if ( !resultElem ) {
@bruce-willis
bruce-willis / yunohost-oracle-free-tier.md
Last active May 9, 2024 15:39
How to setup YunoHost at Oracle free tier VM
  1. Register for Oracle Cloud Free Tier
  2. Create compute instance
    • change image to Canonical Ubuntu
    • confirm that a public IPv4 address is assigned
    • upload your public ssh key
    • leave everything blank in Boot volume
  3. Enable Internet Access
    • Instances → Instance details → Subnet → Default Security List → Add Ingress Rules
    • HTTP: Stateless: Checked